package com.ca.project.Server.Modules.Tweets.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * 
 * @TableName tweets
 */
@TableName(value ="tweets")
@Data
public class Tweets implements Serializable {
    /**
     * 推文id
     */
    @TableId(value = "id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 创建人
     */
    @TableField(value = "t_create_user")
    private String tCreateUser;

    /**
     * 推文题目
     */
    @TableField(value = "t_title")
    private String tTitle;

    /**
     * 推文内容
     */
    @TableField(value = "t_content")
    private String tContent;

    /**
     * 推文封面
     */
    @TableField(value = "t_cover")
    private String tCover;

    /**
     * 推文类别
     */
    @TableField(value = "radio")
    private Integer radio;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}